Added tests for the Java properties document parser object.
Fixed issues exposed by writing unit tests.