did more work on unit tests for gridmodel, spreadsheet and inputline. many conditions fail. please look into it