fix failing test if numpy is not installed