Supporting routines needed for the sysmaths module.
Added new functional tests.