tests: make the test work

We need to drive the mainloop to activate the source.