Add example test to show how it's done

I added a lot more comments than necessary, to explain what is going on.