(Unit Test) Check if the resident is really assigned to the community

More random for randomInt()