Moved to util/testing.py