ContextManagerTests: Fixes Unit Test Logic