Add tests for batch upload