add state test