add test for KAbstractImpl toplevel completion (closes #3310)