Add invoke method to closure. And refactor test of inversion.
Refactor exceptions. And fix getService for reference.
Refactor tests. Add Data service.