add small test to verify values are the same as the C version of the library