Remove env passthrough. Add readonly flag default. Fix test imports.