Fix report module testing

Fix running a report module that has a test function.

Change-Id: I9985ccdc50a95c7c53cf6966514232b743b7be2f