added unit test for strange tpl bug