checking if filter is a regex

adding tests for when filter is a regex