Refactored http testing, time based test