[BACKLOG-194] -- Added tests for createFile in FileResource