Add method generation test, bugfixes