Test the behavior of rs.cancel() and rs.read() for various states