[loader] Add test for leftover `test` function

...in module configuration objects. This is a side effect of how
patterns are implemented and it should not be there in order not to
conflict with optional requires tests.
[loader] Remove `test` function from patterns

...when generating a dynamic module configuration.
Merge branch 'pattern-merge' into dev-master
Build Loader