fix test case.

empty url was breaking randomly at url parser outside the test scope
wake up logger before running tests