Updated feature test to include foreach support