full test script from KO