WebApplication unit-test fix