Added a failing test for multiple builds through the same pipeline.
Added a new test case.

This one is for multiple builds in different files, but with the same
pipeline.
Fixed having multiple builds through same pipeline.