Test fixes for HEAD^