Added and passed ptx read-write test.