Merge pull request #1067 from dottedmag/bugfixes-osx

Bugfixes osx
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