Adding tests to cover existing value change in input

Closes #529