Fixed tests and one-byte packet reading