added unit tests for arrays