added regression test for very small geometry
compile fix for debug mode