Fix #3: Automatic tests

Implemented tests for login, create event and create app.
TODO: Add more test cases and make the existing test cases more robust.