Added tests for byte formatting functions