fix failing test if numpy is not installed
Merge pull request #444 from ndawe/master

[MRG] fix failing test when numpy is not installed