MODULES-1413 Add spec test to capture failed scenario