get exception on unit test