Fixed test for companion object.