example how to rest handlers (routefunctions)

+ extra assertion to issue 30