refactor all of the test stuff since we can just modify package.path if
needed