Filemanager: test file in regression tests

* Modifies the test file to be created and removed before and after the tests

* Changes access to the urls using 'url_for' helper method

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