add math func and math test