Added module test code
Fixed writing and reading outputs in ModuleConfigTest