Escape . in regex in tests.