build: fix tests with UI

There were errors like this:
(test-widget:31110): Gtk-CRITICAL **: Error building template class
'TestWidget' for an instance of type 'TestWidget': Invalid object type
`GtkSourceView' on line 3

Linking with libgtksourceview-3.0.la fixes the problem. But I don't
really understand why.