handle tests cursor pos correctly.