resetForTests

Restores the library to a clean, uninitialized state. Intended for tests only.