Fix unit test

Two error was fixed in PrimitiveTypesReadTests and SimpleDataErrorTests.

But testEnumerationTypes in PrimitiveTypesReadTests still fails.