Added functions for most of the tests.