Add api testsuite and do some more array api changes