fix exception unit tests in Rabbit