Update tests and examples