Fix frameworks loader tests

* Adapt tests to new frameworks loader config
* Don't switch user in tools if we aren't root