Implement validate command

I find it debatable, if this kind of test actually makes sense. But as it follows the pattern we use so far here, I will live with it for now.