add tests for null bytes