Converted test to example

Signed-off-by: Oleg Bulatov <oleg@bulatov.me>