Modified test_arrfunc