added methods to make it easier to run unit tests from Python