correct cursor position in test