Adding function tests.