Testing hashref in an arrayref