Domain definition: corrected migration scripts + corrected sequence
definition on entities + added unit test to validate Entity mappings
against migrated DB.