Use fakefs
Add specs for .generate