added a snippet of functional tests (works under python 3.2+)