python2 compatible tests