Added unittest for Index.upload /w arguments