[ticket/277] Add tests for functions_modules.php

Fixes #277