tests, testrunner, fixes in error handling
link to tests
and a link here