test_sanity: warning fixes.