Fix typos and add test cases where pass single role as an array