fixed testing script