Pass Factorial and Cosine TestCase