fixed unit test cases
fixes according to test cases and addition of many-to-many for flw and flwgroups