fix - bad reference on error obj
add - test stub for sync with hook functionality