Added cases to check behavior of 'last_error'.