Unit testing the web layer