Fixed some issues with tests and started spec for generator page