Fix average request time in uwsgi_monitoring

This also adds unittests