No ticket. Restore some parsing tests in core. (cherry-picked from 650f325d8e5e9092cd8ca7c1a7ab62c4bba582cf)