Added test for `to_puppet` method