added test for RuntimeError