Added some unit tests related to state.