added more tests to validate proper privilege type and what happens when invalid privlege type is used