Test for cos