You can test the coilpacks (as long as youre sure its not sparkplugs causing the trouble, replace them first) by unplugging the coilpacks one by one with the engine running (make sure the misfire is there aswell, not sure if it works if the engines running normally) to test for a drop in revs. If a coilpack is faulty and you unplug it there wont be any drop in revs. Replace that one
Remember do this one by one and dont keep them unplugged for that long with the engine running. You can test the ones under the air intake by removing the intake and unplugging the MAF so the engine still runs, you will need to get the fault codes cleared afterwards obviously.
This is how I did mine and found the 2 faulty coilpacks