piggy: added a test for connection reader.