Make the tests more DRY

Move repetitive code (requiring the server, connecting alice etc) to
beforeAll and beforeEach blocks for ALL the tests, not just the new ones