refactored web test