Added a test for State's instance of Apply
Merge branch 'add-test-for-state-instance-of-apply'