Integration tests

Here are some basic integration tests (as requested in #1). Tests most of the UI.