Enabling tests.

Enabled some tests in ModuleApiTest which tested marshalling and
unmarshalling. These showed some mishaps that were corrected.

Also moved the previous tests to invalid states as they are not valid.
The validation is still not turned on in the tests.