Rewrote nose unit tests into lettuce tests for utils.