Fix vectorization tests under Python 3
Formalize requirement that pytest be >=2.5