added tests for spherematch and sample_spherical_cap