Add test for record_only mode