Some tests require a proper TM to be returned by the TMLocator implementation whilst others require a DummyTM to be returned. This patch makes allows TM returned by the locator class to be changed by the test.