move tests into examples