add exceptions to test program