fix bug in test
it's a throw, not an exit