ENH/TST: Improve subpixel precision and verify it with tests.