Convert all 'def test' formulae to 'test do'

Closes #26942.
Closes #26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>