added unit tests for NSData
added NSError category