fix unit tests and instruments exit behavior