adds unit tests react-component and react-directive

@davidchang this adds unit tests 
phathomjs doesn't seem to support `Function.prototype.bind`