Fixing moments, add moment tests

and add nulp tests