add some hooks to run only selected tests, add some more debug output