Add tests for the PacketReader and BufferedReader

Signed-off-by: David Scott <dave.scott@citrix.com>