Check register with assert