Corrected expect output to array of hashes from just hashes