Add basic unittests for uploading from textarea (cf #62)