added test for putMapping, changed url in putMapping to make it work with older ES versions
adjusted comments in putMapping