Added tests for _tryGetApplicationCredentialsFromEnvironmentVariable