patch to allow unit tests to run