solved API fetching issue with E2E test