testing state handler