Some changes in scenarios. Adding cxxtests for scenarios. With generator script.