add an example of exception handling and test files