Ensure getState function context is view
add a test to make sure getState function context is the view
Merge pull request #20 from jhollingworth/getStateContext

Ensure getState function context is view