Tests for optional headers argument for upload method