- fix tests under numpy < 1.7