Fixed array indexing problems in testing emerged in Numpy 1.8.