fix failing test when numpy is not installed