[tests] added test for second occurance of same attribute

fixes #42