Docear/HTW-Frontend#546, added tests, bigfixing through tests