FIX: wrong order of arguments in a tail call. + Test script