Fix some tests under pypy
Release 0.5.0