Accounted for zero vector and added test.