[greg] finished functional test