Adjusted tests for React 0.12

The 0.12 release deprecates some of the syntax that was used in the tests.