Add fn to test if inside match block.