Snap to grid unit tests