* added e2e test * Cleanup * Unused permission * Minor changes * Added case when there is no common team * More tests * nit