Pass the role tests

Also I have changed the dynamic `find_or_create_by_name` method to a
call to `find_or_create_by`.