[tests] fix running of tests when in different dir