Add .gitignore files for test generated files
Correctly export ringbuffer function and fix a warning