refactor array content tests