Bug fixes for simple_webtest
Discovered several bugs in the way that non-zero return conditions were handled in the measure_site function. fixes have been made to rectify the situation.