Added unit tests for get_distance methods.