Fixed rspec tests for defined types.

Added support for testing mysql::db and staging::deploy defined types.