Slightly improved button_ids test program