add failure service simulator test, refractor js script for the ui implementation