modified functional tests to suit the QA database.