Add tests for closest()