Rewritten functional tests.