FileManager: Added regression tests

* Added new regression tests to 'FileManager'

* Action passed as a request parametes instead of being part of the URL

* Small refactorings

Signed-off-by: Alberto Rodriguez Peon <alberto.rodriguez.peon@cern.ch>