Intricate looping test