Added unit tests for getByte routine