work on functional tests