added test for failing CCHQ close request, fixed functional tests