added functional test file