Add tests for init an build_url.