Fix tests to work with latest pyqode.core