addState test fix