improving error reporting when fork fails for testing