Fix tests and examples.