Fix optimizations
Add explicit test group for the codegen (#402)
Fix warning