Better file upload test

...thanks to @kaspth