Added authentication support
Added testfile for authentication