Zhiyi Zhang : tests: Add tests for subresource read write.