updated error handling and test project