Add AllCapsTest for AllCapsFilter

Add method to get pattern from AllCapsFilter

Add test for AllCapsFilter