Enable authenticated api testing
Improve return syntax style

Add one level of indentation after a return for Promise chains. This
makes it more obvious that return statement has been already executed.

@jpkorhonen