refactored the E2E tests to minimize static state (only server is static now) and removed code duplication by introducing factories and a setup in the base IT