Add tests for PR #4.