factor out unittest/unittest2 imports