Fixes #55
Added unit tests for OnCreated
Moved trigger of OnCreated to entity constructor

This ensures that the event also get raised if the developer uses the
entity object constructor directly rather than calling the Create method
on the context collection.