Essence validations

* Fixes #461
* Fixes issue with uniqueness validation of all essences (the essence itself was always found so that validation always failed)
* Adds unit tests for presence and uniqueness validations on essences