Added self-tests to whodge.sage.