Bunch of changes.

* Test for add, update, persist
* Add EnityClassNotfound exception