Change module test method to be consistent with the Java API

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>