Rewrite test generation in _add_test for traceback readability