Add new functionality in elementFactory and tests
Merge branch 'develop' of https://github.com/learningmedia/anavis into develop