Added base_url and fixed test