Added method for passing in parameters to runWith
Added unit tests