Rings with annihilator condition and their extensions