Tests: Fix error message if module is missing