Add AdvancedWordProxy and testCase2 function to main.cpp