Added test cases. Discovered function errors.

The functions csc, sec and cot are not working correctly.