Added functional test to repo