Added naive test for tail rec using in engine