add tests apps authorization
rm unused function
test internal with superuser
ensure superuser is used for internal APIs
Merge branch 'after-dibigrator'
fix tests