Fix args output. Add tests.