Make setters return self for chaining. Add MachineRegistryDaoTest