Fix test for cosineDistance

I'm so sorry for making a mistake in the test. I fixed it.