Made test pass for createBefore