Add some tests for the RegisterActivity

This branch adds tests for the `RegisterActivity`.

Only one of them hits the API, and it's done to check if the form responds correctly to an already in use email address. We could possibly do something crazy to mock the response from the API, but this should be fine for now, probably.