extended test
now returns array of hashes