Fixed ProfileGenerator
Added code coverage