refactor trig tests to use an instance of p5 rather than a mock