Adding functionality tests.