add support for checking from within unit tests