changed the expected exception type in a test that had to be changed when commit dffe394f was done.