Fixed use of deprecated function name guardian.assign_perm
Fixed failing tests for clean install