Add application and functional test