Adding e2e tests and fixed group membership removal bug