tests for arrayHelper