fix param initialization bug in UT
Merge pull request #1230 from lyao2/ut_fixbug

fix param initialization bug in UT
Merge remote-tracking branch 'upstream/master' into travis.osx