Bug Fixes

fixed testing script