Adding some functional tests.