Tests for getting Match pattern and mapping action name