Test to check recursion protection