Test for cosine