add tests for near