test adding state