added unit tests for domain, security and services