add tests for illegal arguments in math functions