add some tests for method generation