Use require library when exporting a single library. This ensures that the reference points indeed to a library and that the library is loaded.
Add a file extension to the generated files.
Remove the generated test files during cleanup.
Ignore the generated files.
Separate export of libraries from export of modules.
Pack all the different modules of the plugin in a single ML library. The Coq module now imports just this library.
Change directory to the test directory before generating the test files.
Add various (counter)examples in the Test file to emphasize that only libraries can be exported.