util for generating entities for tests