refactor tests; no test calls external api