all shape functions now have a test
more triangle functions and tests