Export Google-internal library externally, fix tests