Working test for insert and query coordinates