Bug fix. Implementation of _get_sparse_coords was not correct. Update test and add second test.