added test for closest relevant vector