1) fixed layout matching mode default value
2) fixed test case