provide a little more involved example

+ better tests