[stacy] Fixing module dependencies

+ Formatting is better, still get blank lines though.
+ I was calculating the test dependencies incorrectly.