Test moduleinfo test

Two small fixes for moduleinfo test.