got functional tests working