#984 Database modifications for API tests for access rules
#984 API: implemented ability to get media files list with access rules