Debugged problem with test_type, added traceback for exception