testing domain class