Added functional tests for auth key return.