Making sure that error logging is working correctly