collection: add test to query using regex.