Create a new Unit Test Bundle target, File -> New Target ... -> Unit Test Bundle
Add the target as a test target to your Command Line Tool scheme, Product -> Scheme -> Edit Scheme ...
Select the Test action in the left hand list
Add New Test Target by clicking at the + at the bottom left area of the dialog window
Now you can Product -> Test your app.