Refactors role_test.dart