Added a test for clamp