added function to run tests to misc.sml