Fix GroupPickUpEntitiesTest

Was failing non-deterministically (saw one failure in a PR branch built by apache jenkins).