Add testcase
Merge branch 'master' of https://github.com/norlin/ff-apply-bug