Closes issue #2 by adding appropriate tests to the script as requested by @hej, such that values that have already been set to a higher value to not get changed.