Fixed test to use tolerance to compare vectors.