added a test for the linear restraint