Okay I give up... with the unit tests for now.

I cant for the life of me work out what is going on it all works
flawlessly locally but on travis is fails. Will setup a vm locally
and test on ubuntu but for now I am moving on.