Cosine similarity tests