BUG: support numpy < 1.7 in tests for #6543