Remove unneeded exception signature from unit test.