Add tests on randomcoord functions