tailrec2 test
fix list elements lost in tail recursion