oops, sin period should have been frequency; unit test for decay part of sin function