flash uploader: add tests (close #133)