Updated code reference for E2E tests to use process.env.PORT with fallback