added cosine testcase