testing basic error handling