unit tests for bytes formatter