updated tests and examples