Fix the unit tests after new document REST API
Additional on authentication