[BACKLOG-194] -- added many junit tests for FileResource REST methods