Better integration test for webapp