Added one unit test. Which caught a latent bug, and a possible bug in
geotools. Yay.