refactored web server test