Sudo to user if user is defined

method user is not implemented
New test for sudo, but fails with

Puppet::Error: Command plutil is missing
Fixed the tests for user, implemented user