building entity tests