Load plugin code files by order of appearance.

- old behaviour: file name length
- added test for plugin discovery