Bump Metalsmith to v1 and fix tests