Fencing fixes and regression test update