added test to ensure it is semimetric, clearer comment