Bump metalsmith to v1 and fix tests