added a feature to reset error number
added connection tests
removed some unwanted features from rspec