compile examples as tests