TST: Add more unit tests for the moments conversion system

These unit tests check for the bugs that were just fixed.