Good stuff, you found the problem
The flaps could can be operated on the ground without the engines running (generally only done for maintenance). This is done by switching the AC Pump and PTU to on. AC pump is the yellow hydraulic system and the PTU is for the Green hydraulic system. To operate the flaps, both systems MUST be on other wise you will get a flap fault on the MWS. The spoilers are similar, in that half are on the yellow system and half on the green. Also you will need to make sure the spoiler control switches on the over head are on or they will not deploy.