Adjust module types in loader and tests

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