Add more tests.
Optimize by looping through coordinates per feature.