Added check for byte side on socket read (unit test)