added testfiles to check if special characters are handled correctly and some improvements to the sync, insert and delete implementation for ES