Added test for byte <-> int conversion and improved performance