Auth tests for the bulk API
Refactor shared auth test framework to avoid namespace clash