some new helpers and beginnings of test file for math pkg