entity tests