functional tests working and passing