added error and test for syncing

@Raynos 
alternatively we could just return `cb(null, { name: lol, version: lol, dependencies: {} })`