The deepEquals method fixed. All test cases pass.
A bug related to EOF in the Input class resolved.