Non const references cause a lot of confusion with behaviour of code, and are disallowed by minetest style guide.
Split unit tests into separate files under src/unittest/ Give better unittest diagnostics Clean up some code