added test to all tests and editted test of distance shared.