Port AsYouTypeFormatter and TestCode (need fix results)