Make sensor accept blocks instead of procs
Can you modify the test to make sure the data gets passed in? Instead of setting first_block_called and second_block_called to true, you could copy data into a variable in each block and then test for both being equal to 'Some data'.
Modify sensor tests to validate data
Fix examples to match new sensor behaviour