adds unit tests react-component and react-directive

@davidchang this adds unit tests 
not sure i understand what's going on in this test; also, does this work? You seem to have two spaces between Hello and Bruce Wayne