Fix syntax erros in Puppet::Provider::Nimsoft

Due to a lack of testing the nimsoft provider was not functional. Fix
the syntax errors and improve test coverage