adds hack to fix unit tests. all unit tests work now
fixes collector test