fix test and add test for roles view