some tests and setting the previous value