added tests from bytes