Corrected unit test assertion errors by injecting announcer