fixing errors in testsuite