Attempt to fix tests for PyPy.