updated CHANGELOG
added tests for error codes and messges