Fixed the test for sin_len as noted by Shinichi Maruyama. Changed