test_client: Add the ability to specify resource