add construct code_url method

and add test