Fix append_selected_files() test
Move libraries to the back on linking tests

Fails on build bots.
Merge branch 'fix-building-tests'

* Trying to fix buildbots after updating tests.
* Fix somehow missed function signature change.