Migration command  + improvement test javascript