<p>It looks like you've made these changes against the mlpack-1.0.12 tag; could you instead make them against the <code>master</code> branch?  Otherwise the changes and the tests look fine.  After I make the merge, I'd like to move your tests into <code>cli_test.cpp</code>, if that's okay with you.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/471#issuecomment-157513188">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFLdPpoVpK2umGfuayfTLhDLHtEmEks5pG5OugaJpZM4GkMt9.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/471#issuecomment-157513188"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>