mock functional tests