Implement support for tests.