correct isAllowed test