test: add Math.clip unit test