[ticket/277] Add tests for functions_modules.php

B3P-277