made test more robust. should fix nightly
Merge pull request #797 from swarbhanu/fixing_nightly_uns

Fixes nightly buildbot