Create clear method, for tests.