Added unit tests for the batch uploader