Tests for #231
All class initializer parameters are marked captured
remove useless code for naming parameters
Fix #231