I solved this by creating a new user TEST_USER, and I granted these roles:
(note that "Grantable to other users and roles" is checked)
After that I opened an sql connection with the TEST_USER and ran this query:
GRANT AFL__SYS_AFL_AFLPAL_EXECUTE TO SYSTEM;
GRANT AFL__SYS_AFL_AFLPAL_EXECUTE_WITH_GRANT_OPTION TO SYSTEM;
And everything worked out!
