Fixed bug in WebApp functional test