tests with ruby arrays