Added basic authenication command line flags and corresponding tests