can you also write an e2e test for this please?