Implement done(). Add test.