Convert functional tests to FactoryGirl.