added basic authentication test cases
added null exception test cases