Added Tests target.
Changed loop index variables to be signed (at recommendation of WWDC clang material).