Adding more testcases for assignment and fixing group scan