++ tests and examples