tests for arrays