Added match rule
Added test for match rule