testing if statechangecomplete works