finish test, restore js