DRY definition of _Monkey class used for testing.

Move to a non-testcase module, to avoid dependencies between testcases.
Merge pull request #250 from tseaver/refactor-dry_monkey

DRY definition of _Monkey class used for testing.