Moved codec checkers into own file, changed them to accept string instead of []byte, and added tests.