FIX: loop over trials
Merge branch 'testft'