test-file-saver: use subprocesses for async functions

All tests call the generic function test_saver(). gtk_main() is called
at the end of test_saver(), and gtk_main_quit() is called at the end of
the operation.