Add tests.alter_time and fix time altering on pypy.