add role test and refactor test dummies