Added unit test to ensure that exceptions in manager are handled correctly