Correct counting sine test to use scalars and proper sin function.

Was incorrectly using float comparison when needing to use double
sine comparison. Also needed to make sure we compared as scalars.
Merge branch 'scalar_counting_sine_test'