Remove assert_empty_opts from generated code. Otherwise adding future optional arguments will fail
Fix parameters to assert_class call