Add a test suite for is_halfway method