fixed API refresh that was changed when tests were written