test($core): test file rejected via callback (see #1059 too)