added test for when the initial value is a null
bug fix - when the last call was run, val or rec it would not return the last value