Is God perfect....hmm interesting,

Now Satan and his devils weren't always evil. Satan before his fall was one of the bigger heavenly creatures and his name was Lucifer «he who carries the light». His position was on the highest place of the unbody creatures and spiritual perfectio

Before his fall he was the first in the angelic hierarchy having power, brilliance, wisdom as well as the kindness of the angelic nature. He was Gods right hand man and yet tried to over throw God. Now if God was perfect would he have not seen this coming? Would he have not allowed Satan such power in the first place? Evil and imperfection was there before man and the temptation of Eve.

Perhaps God tested man with the forbidden fruit as he had been betrayed by one so close already. Hence he is not perfect as he knows doubt and betrayal.