Improve api test logging