Fixed up missing attr on init in unit tests.