fix typo; finalise self-testing (fixes #4)