(#14036) Add upstart tests
Refactor upstart provider with suggestions from dpittman. Add specs for upstart provider.