Alex/fix rake doc

Fixes broken documentation generation. Adds test for generation documentations.