Fixed error message for primitive parsing
Added error test for readINTEGER functions