Updating tests.py so that it is in the up to date with the current version on revsys/master