[BACKLOG-194] -- Added jUnit tests for REST layer methods in FileResource