simplify test of domain class setProperties and getProperties