Fixed several path problems in tests