correction for tmplayer writer, more unit tests
ut wip