[#1905] Allow search on resource name field.

Changed 'assert' to 'eq' to make test pass okay.