Migrate some examples as tests

Asking review of @guiled, @camael24 and @Metalaka :-).