Added domain classes and their tests.