Fixing a typo error on CollectionResourceWrapper log messages.

Also, adding a JUnit test to verify that we can use any numeric metric as
a resource-filter field.