Added tests for the domain class.
Added more domain tests.