Adds automated functional tests.