Fixed all the resource errors in testfiles.
Got focus tests to work, in a sad way.