Won't this test still pass without the fix?

I think you need to test the result, or check the pxe_config filter actually set the instance variables, e.g.

    assert assigns(:initrd)
    assert assigns(:kernel)