Fix api auth tests