test(smoke_generator): add a unit test