adding some toString tests and refactoring parameterNode creation logic