Workaround for lack of .gcda files in Xcode 5

See:
http://stackoverflow.com/questions/18394655/xcode5-code-coverage-from-cm
d-line-for-ci-builds
Minor refactoring and formatting
Negate NSAssert