change tests because of npe when mocking exceptions