Array declaration tests, some fixes and testing framework.