Run tests and examples in a fresh session.
Closes #258