Fixed package relative resolving, and adding new mock API that allows for mocking dependencies that don't exist