Expose Fogin on index.js export, update tests