Added Rspec puppet test and  OS and force registration logic