fixed the failing tests when the extension is compiled in different directory