Core: Correct the number of expected tests

(cherry-picked from da148f158f40b474841ad7a60cc39c5868cf420c)