Ported FunctionalTests project from v2 branch to 2.x branch.