http test mode
check for key and set test mode in tests