Fixed RegBuildingTest