Moved createContext method from providet to manager and fixed tests.