Test darwin hack

Should really convert most/all these tests to use mock