core: add a test for last PR