Added two functional tests.