updated tests and fixed base client url making