roles api more test cases added