Catch the exceptions in test
Actually throw system_error