Do not import test function in compat.numpy; associated changes