Only execute tests with elevated privileges

Some of the Ohai tests require elevated privileges. Previously this entire script was executed with elevated privileges but this created a situation where Jenkins could not clean up it's own workspace (namely files generated by Bundler were owned by root).

This change only executes the actual tests with elevated privileges and ensures the generated test.xml file is owned by the Jenkins user.

/cc @opscode/client-eng