Inject local files

Add tests for local file insert