add func test for create on file resource without content