makefiles: Add intermediate test target to propagate test failures status properly.