added constraints to tests,tests passing