Adding state tests from the latest examples.