Add test to verify fetching of plugin details

Also update the documentation to add an example showing how to fetch plugin details.