No more time.sleep() in server side script required :)

Also modified unit test accordingly