Update some tests to properly handle bytes instead of strings