Add test for junit-team/junit#749.