Fix checkHalf

Adds tests for it too.