Added tests for all mathematical functions