That was supposed to happen, since they never stop spawning even after the game is over. But not anymore, I changed it.
No, I'll just leave the weapon test mode the way it is. I'll probably add a freeplay mode, which will let you use cheats, but you'll have to unlock it by beating level 50.