Fix slow tests in test_trigonometric.

This is a PR against your personal branch.