Fixed coverage by using another way to access statics from within the test: define static to nothing if compiling for test.