There are at least two kinds of tests. In standardized tests, you are dealing with fairly well known outcomes and the test is to see if a given entity meets those standards.
The driving test is failed by many people every day.
The test isn't a failure, it is an accepted standard that many takers cannot meet (at least yet).
In experiments, a standard or goal, often not fully known or established, is postulated. The experiment (or test) is conducted. If the outcome is not what is expected, the test has failed, not necessarily the tester or test taker.
For the experimental vaccine, the test has failed to show any beneficial results.
Build seems a bit more complex in that it is jargon within a particular field and might be better answered by experts in that field.
The following is in response to the original poster's comment below.
In the test is failed usage discussed above, the logical subject of the discussion is the test taker.
John fails the driving test
The driving test is failed by John
The second sentence is a passive construction that moves the logical subject (John) into a prepositional phrase. While test is the grammatical subject, it is still not the logical subject, but the logical object of the sentence.
In the second example, the test itself is the logical subject of the discussion.
The test (e.g. the experiment) has failed to yield results.
This is an active voice and the test is the grammatical and logical subject of the sentence. It could also be said in the simple past tense as
The test failed to yield results