slight cleanup to core lib tests
Add mode and ownership options to Fileinjection