Add unit tests.

function(done)