Fixed recursion logic and add craziest template test.