ticket:8 add id checking in tag

to avoid wrong rendering of fresh-created unsaved objects
ticket:8 fix test typo
ticket:8 add tag realization