fixed relative path bugs when tests are not run in the directory in which they are defined