Fix tests by making simulated incoming data be bytes