added filter for checking users roles
added tests for roles filter