Tests for half in and out