Use same approach of when channel state is chaged to "DISCONNECTED".
To run the tests, point your browser to <yourdomainhere>/tests/frontend
<yourdomainhere>/tests/frontend
To run the tests, run bin/backendTests.sh
bin/backendTests.sh