Unit tests for the web-app protocol