(#14844) Add test that execpipe works for upstart provider
The test as written covered up the fact that the execpipe method on
Provider did not work correctly. This modifies the test to move the
mocking down, out of the class that is under test so that it exercises
the Provider class.