code cleaning: environment variable in uppercase
add authentication in test environment