fixed test_registers_returns_bytearray - encapsulated conditional expression in type