fractest.*: extensive changes to integrate randmanager

At this stage, the app will build, but it crashes when executed.