BS-11314 Add test on the migrationBefore