Saving testing code from interactive console