make possible to run tests from any dir
(cherry picked from commit f023a982e284b4dd034ed019894cd56cfa7c4217)