Fixed read resource test.