avoid some numpy warnings in tests, prevent masking of a tested warning