fixed permission test