fix for failing junit tests.