Functional test in unittest, and specification in comments