Add test cases for issue #296.
Merge branch 'chris/in-triangle' into next