Error Codes
added test