Ftest updates

Various updates to let ftest compile and run. Note, functional tests on UI are not working - UI is broken in firefox.