The first test causes NullPointerException in DumpRenderTree because dumpAsText could return a null string.