For testing cosine similarity