Added better assertions in SQLException tests and updated getCoordinatesForCells