Added funtion in test class for right vector.