Chnaged numpy debug test to make more robust.