Add NSError+XWS tests