Fixed missing comma in RuntimeError and added a test.