Replaced injecting moddleware
Added tests for injectData method :metal: