Replaced CordovaError throwings with Error
Extracted prepareOptions Hooker method
Added Hooker tests