Frontend tests

Add some tests for the front-end.