add tests for math sub package