Function tests.