0NNNs format is undefined behaviour for sprintf, don't use it in tests

OS X 0-fills the string, glibc space-fills it.
Ignore tests which use stubbing on OS X: Mach-O linker does not allow it
Merge pull request #1068 from dottedmag/bugfixes-osx

Bugfixes osx