[Misc] Convert some tests to Mockito and add some missing unit tests about start/stopUsingMacroNamespace() + increased TPC