I agree that R&D/hacking/prototyping should not be inhibited by always requiring TDD/BDD/FDD/etc. But once the idea has been ironed out, the developer(s) should really throw out/comment out the code and then start using the xDD of choice to bring that code back into the code base: safely.