fixes #4607 error when running test from ide