Add some more metadata viewer tests
Don't crash when uploading a non-CSV file
Don't crash when previewing a non-CSV file