added more type and test AND pattern