This class contains a bunch of functions that are only used in tests; they should be removed.