Added tests for DoesRequiresRoleName
Wrote exception class DoesRequiresRoleName
replaced throw_error with throw_exception