catch AssertionError for tests