Add fileprg tests for collections
Aplly fix/zf-4974 from @dpommeranz d05f1a7f2429187acac75953127ebb3a3793f009