Add tests for wharfie command (bug 1082504)