Add some tests

As a prerequisite for migrating to Vaadin 7 we should first cover essential functionality with tests.