Convert NSNumbers to NSIntegers

Fixes issue with while() loop repeating and avoids unnecessary boxing
values in methods
Add native XCTests

Test the NetCheck module including its arguments and their return types