Tests and examples