Refactor ngMockE2E: move logic to differnet files