Here's an illegal formation, yet it seems to meet all the requirements:
--- ST --- ST ---
------ AC -------
ML -- MC --- MR
------ -- -- DMR
DL -- DC --- DR


I know you was just testing, but what kind of manager would play with a formation like that?

Just use your common sense and football knowledge and you won't have any problems setting up the formations