cleaned up resource test a bit