mathematical functions: fix wrong test functions.