Test: Refactor trigonometric tests into a helper. The precision test of these functions need a special helper, it can also be used for their arc functions down the line.