Fixed several tests failes
Fixed Zend Hash API usage (although it's in comments)