tests for sin function