Refatored generic test of admin permission
#1-38 Fixed