Add test for ::get_resource