publisher element extensions correction

this fixes #1
+ Tests

Signed-off-by: Emmanuel Mathot <emmanuel.mahot@gmail.com>
Merge branch 'hotfix/issue1'