work on testII. do some test on switching states