Switch to using ByteStrings to avoid multiple conversions.
Add basic tester.