tests: Improve the multiprotocol tests for libresource

Now they use the callbacks for checking results of acquisition
and release.