Move method getCaret() to super class
++completion
Add tests for completion
++tests
to completion