Add first set of basic unit tests for BITCrashManager

Also make minor changes to BITCrashManager to be able to test