Add tests for creating empty files plus dryrun cases