replace failUnless deprecated methods
Merge pull request #1886 from dimagi/deprecated

replace failUnless deprecated methods