fixed contains incorrect logic.
added test case to test all inserted points