fixed field generation problem - double dollar sign
extended test
IEmitable for module and class method definition