updated exception type in test for #18