Merge "Add flag to grant permissions when running tests." into mnc-dev