working functional tests