Fixed some bugs and tested the OutOfDate state.