add test examples writting on stderr

Fixes #3