updated several tests and examples