Fix skipTests build flag (#12716)