add TestCase for the States and test the auto_state functions