Added CRUD functions and testcases for Puppet classes.

missing `@bz` testimony tag