     expect(fieldError).toEqual true
     changeValue('fred@mail.com')
     
-
     # dependencie validation
     changeValue = service.registerField('field2', null)
     expect(service.validateField('field2')).toEqual false

          ]
        ]
      ]

  
  testFactoryInit = false
  angular.module('TestModule', []).factory('testFactory', ->

      error: (msg) -> fieldError = true
      ok: () -> fieldError = false

    expect(testFactoryInit).toEqual true

    # normal validation    
