py3 compatible tests