adding changing state functional test