Added test for passing constraints on.
Altered handling of overwritten constraints.