Fix test failures with gtk+ 3.0

All of them due to annotations that were missing at the time.
Fix test failures with gdk-pixbuf >= 2.31.2