Fixed functional tests.