added test for vector distance