misc
update test to always refer to already created entity.
Also added default constructor needed by jackson lib.