added clipping test to test_math