Added test for empty vector input.