e2e tests

Implements the e2e tests (at least some of them).

More will have to be written and we can then start using pages.