add enable and disable method for autoRecording
change the getDocument test to a updateTest