fix foreclosure test cases