Exposed coordsAreWithinBounds; added tests.