improve test
improve test and implementation by nil-case and ambiguous/unique cases
add controller action, add views, add exception

' only the raw file download is working
' partial file_base is supposed to be rendered, but it isn't