fixed functional test