fixed a bug with referendum e2e test that was causing it to fail