add unit test for exportloggedrequests view, fix other test, add _clear_log auxilary method to pagetracker for the sanity of unit testing.