Introduce restore paper function for test with a bug fixed