add test for element id generator
fixed bug that incorrectly save the path of some attribute