Factory method for generating n number of fake pipeline modules
Correcting bugs in module factory func
Updated state test to use module factory
Added test for convenience method Pipeline.has_calls
Test against mocked run() call
Implementation of Pipeline.has_run()