fix tests for Hooray components
some significant changes in Hooray
add a define function to Hooray