Add test for pattern migration
Add test for pattern migration
Add pattern in database + test