Checking for instances of AssertionError