First support for package testing and changes to make all tests of package "math" pass.