Add some tests for the path contraining functionality.