[cli] Complete tests for listing plugins.