added testing script to work on exception handling