added tests for error codes and messges
updated CHANGELOG