Refactoring test of module_by_file and adding structure of function call test

Signed-off-by: Lucas Kanashiro <lucas-kanashiro@hotmail.com>
Signed-off-by: Macartur de Sousa <macartur.sc@gmail.com>