some random fixes/changes/tests

-unit test for std normal rnd
-compile tests with warnings as errors
-remove some warnings