Modified numpy test to reduced its length.