helper for functional tests