test: add tests for getNewValue