test_lib__init: fixed bug in fix_market_url