I think it would have worked better if the first attack wasn't meant to be a test, but the actual attack, but there was a flaw in the weapon and it malfunctioned after just a few seconds. So the Xindi had to build another weapon, but on a rushed timetable because now Earth had been warned.
Reminds me of the two Death Stars in the Star Wars movies, in a way.