added tests for arrays