change indentation to 2 spaces
add unit test for match directive