Add =mock=.
Use functions and =assert= instead of =TestCase=.
Merge branch 'flat-tests'